<template>
  <div class="about">
    <div>
      <el-row>
        <el-col :span="2">
          <el-button>默认按钮</el-button>
        </el-col>
        <el-col :span="16">
          &nbsp;

        </el-col>
        <el-col :span="4">
          <el-row>
            <el-col :span="19">
              <el-input v-model="input" placeholder="请输入内容"></el-input>
            </el-col>
            <el-col :span="1">
              &nbsp;

            </el-col>
            <el-col :span="4">
              <el-button type="primary">默认按钮</el-button>
            </el-col>
          </el-row>
        </el-col>
      </el-row>
      <el-table :data="tableData" style="width: 100%">
        <el-table-column prop="id" label="选课id" width="180">
        </el-table-column>
        <el-table-column prop="courseName" label="课程名" width="180">
        </el-table-column>
        <el-table-column prop="studentName" label="学生名">
        </el-table-column>
        <el-table-column prop="className" label="学生班级">
        </el-table-column>
        <el-table-column prop="dailyScore" label="日常分"">
        </el-table-column>
        <el-table-column prop="examScore" label=" 期末分">
        </el-table-column>
        <el-table-column prop="score" label=" 总分">
        </el-table-column>
        <el-table-column label="操作" width="144px">
          <el-button type="success" size="mini">编辑</el-button>
          <el-button type="danger" size="mini">删除</el-button>
        </el-table-column>
      </el-table>
    </div>
    <el-pagination style="margin-top: 24px; text-align: center;" background layout="prev, pager, next" :total="1000">
    </el-pagination>
  </div>
</template>
<script>
import { SelectList } from '@/api'
export default {
  data() {
    return {
      input: '',
      tableData: [

      ],
      params: {
        id: "",
        className: "",
        courseName: "",
        studentName: ""
      },
    }
  },
  methods: {
    getDepartment() {
      SelectList(this.params, this.page).then(res => {
        // this.tableData = res.data
        console.log(res, 11111);
        if (res.code === 0) {
          this.tableData = res.data

        }
      })
    },
  },
  mounted() {
    this.getDepartment()

  }
}
</script>
